#ifndef _VOL_LIBICONV_H
#define _VOL_LIBICONV_H

#include "iconv.h"

class CVoliconvWrapper
{
	public:
		iconv_t m_context;
	
		inline_ CVoliconvWrapper() { m_context = NULL; }
		inline_ BOOL IsValid() { return (m_context != NULL && (INT_P)m_context != -1); }
		~CVoliconvWrapper();
		BOOL SetContext(iconv_t iconv);
		
		static BOOL VolIconv(const CVolMem& inData, CVolMem& outData, iconv_t cv);
};

#endif /* _LIBICONV_H */
